import type { App,Plugin,Ref } from 'vue'// 引入类型文件
import {useRoute} from 'vue-router'
import router from '@/router/index'
const isModile:Plugin={
    install(app?:App, options?:any){
        let flag = navigator.userAgent.match(/(phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone)/i)
        if(flag){
            router.push('/notfound')
        }
        return flag;
    }
}

export default isModile